Skip to content

Commit d6f88f6

Browse files
committed
change the way to run tests
1 parent 5ccb2db commit d6f88f6

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ Run unit tests which check each method and command, URL, using the webmock.
3131

3232
```bash
3333
$ bundle install
34-
$ bundle exec parallel_test test/unit/
34+
$ UNIT_TEST=1 bundle exec parallel_test test/unit/
3535
```
3636

3737
or
3838

3939
```bash
4040
$ bundle install
41-
$ bundle exec rake test:unit
41+
$ UNIT_TEST=1 bundle exec rake test:unit
4242
```
4343

4444
### Functional Tests

Rakefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,31 +38,27 @@ namespace :test do
3838
namespace :unit do
3939
desc('Run all iOS related unit tests in test directory')
4040
Rake::TestTask.new(:ios) do |t|
41-
ENV['UNIT_TEST'] = '1'
4241
t.libs << 'test'
4342
t.libs << 'lib'
4443
t.test_files = FileList['test/unit/ios/**/*_test.rb']
4544
end
4645

4746
desc('Run all Android related unit tests in test directory')
4847
Rake::TestTask.new(:android) do |t|
49-
ENV['UNIT_TEST'] = '1'
5048
t.libs << 'test'
5149
t.libs << 'lib'
5250
t.test_files = FileList['test/unit/android/**/*_test.rb']
5351
end
5452

5553
desc('Run all common related unit tests in test directory')
5654
Rake::TestTask.new(:common) do |t|
57-
ENV['UNIT_TEST'] = '1'
5855
t.libs << 'test'
5956
t.libs << 'lib'
6057
t.test_files = FileList['test/unit/common/**/*_test.rb']
6158
end
6259

6360
desc('Run all Windows related unit tests in test directory')
6461
Rake::TestTask.new(:windows) do |t|
65-
ENV['UNIT_TEST'] = '1'
6662
t.libs << 'test'
6763
t.libs << 'lib'
6864
t.test_files = FileList['test/unit/windows/**/*_test.rb']

test/unit/driver_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
require 'test_helper'
16+
require 'webmock/minitest'
1617

1718
class AppiumLibCoreTest
1819
class DriverTest < Minitest::Test

0 commit comments

Comments
 (0)