Mailinglist Archive: yast-commit (1271 mails)

< Previous Next >
[yast-commit] [yast/yast-network] 2aa1d7: test: Fixed running all tests together.
Branch: refs/heads/master
Home: https://github.com/yast/yast-network
Commit: 2aa1d78f9dae1b666f299ea903b38284bc5a6d7e

https://github.com/yast/yast-network/commit/2aa1d78f9dae1b666f299ea903b38284bc5a6d7e
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2014-09-03 (Wed, 03 Sep 2014)

Changed paths:
M test/bridge_test.rb
M test/install_inf_convertor_test.rb
M test/lan_items_helpers_test.rb
M test/new_device_startmode_test.rb

Log Message:
-----------
test: Fixed running all tests together.

rake test:unit (which runs make check) runs the tests in isolation. That
takes long.

This enables running them all together which "rspec" alone does by
default.

The speedup is
23s -> 9s on a fast machine
93s -> 24s on a slow machine

Also made tests independent of order they are run in (--order random).

Avoid redefining constants:
- move a constant outside a .each loop
- rename a constant


Commit: 6223540887ba6dc0568ed5f325162ea161793805

https://github.com/yast/yast-network/commit/6223540887ba6dc0568ed5f325162ea161793805
Author: Martin Vidner <martin@xxxxxxxxxx>
Date: 2014-09-03 (Wed, 03 Sep 2014)

Changed paths:
M test/test_helper.rb

Log Message:
-----------
test helper: respect existing Y2DIR

to enable manual testing, specifying yast2.rpm paths with
`Y2DIR=... rspec ...`


Commit: 01d238c2c45f09991f32d9f8eb1ad140efbc4a6b

https://github.com/yast/yast-network/commit/01d238c2c45f09991f32d9f8eb1ad140efbc4a6b
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2014-09-03 (Wed, 03 Sep 2014)

Changed paths:
M test/install_inf_convertor_test.rb
M test/lan_items_helpers_test.rb
M test/netcard_test.rb
M test/routing_test.rb
M test/suse_firewall_4_network_test.rb

Log Message:
-----------
test: RSpec 3 compatibility: avoid be_true, be_false.


Commit: e6f7d9cc877ea5a10891fb1dad5c17590b55337d

https://github.com/yast/yast-network/commit/e6f7d9cc877ea5a10891fb1dad5c17590b55337d
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2014-09-03 (Wed, 03 Sep 2014)

Changed paths:
M test/network_autoconfiguration_test.rb

Log Message:
-----------
test: pass a hash as intended, not a block

Ruby is readable, except when it is not.

This fixes
Failure/Error: expect(Yast::SCR).
ArgumentError:
wrong number of arguments (0 for 1+)
which is quite cryptic. Running rspec -b/--backtrace reveals the problem
is in and_return.

This probably broke only with RSpec3.


Commit: 0dceb30ec0fc3332d56bb4475f298fcea95e800d

https://github.com/yast/yast-network/commit/0dceb30ec0fc3332d56bb4475f298fcea95e800d
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2014-09-03 (Wed, 03 Sep 2014)

Changed paths:
M test/link_handlers_test.rb

Log Message:
-----------
test: Stubed out sleep(5).

Now they can all run in 4s total.


Commit: 04495158411a4ccc7c397ffe6c3c86671d9ccde9

https://github.com/yast/yast-network/commit/04495158411a4ccc7c397ffe6c3c86671d9ccde9
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2014-09-03 (Wed, 03 Sep 2014)

Changed paths:
M package/yast2-network.changes
M package/yast2-network.spec
M src/lib/network/network_autoconfiguration.rb

Log Message:
-----------
Merge branch 'master' into rspec


Commit: a04dae58578a91ca80ec44b2814c54ce7f98159c

https://github.com/yast/yast-network/commit/a04dae58578a91ca80ec44b2814c54ce7f98159c
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2014-09-03 (Wed, 03 Sep 2014)

Changed paths:
M package/yast2-network.changes
M package/yast2-network.spec

Log Message:
-----------
version + changelog


Commit: 3c9788ca3dfb39fc480428619dfc5aafa78467fe

https://github.com/yast/yast-network/commit/3c9788ca3dfb39fc480428619dfc5aafa78467fe
Author: Martin Vidner <martin@xxxxxxxxxx>
Date: 2014-09-03 (Wed, 03 Sep 2014)

Changed paths:
M package/yast2-network.changes
M package/yast2-network.spec
M test/bridge_test.rb
M test/install_inf_convertor_test.rb
M test/lan_items_helpers_test.rb
M test/link_handlers_test.rb
M test/netcard_test.rb
M test/network_autoconfiguration_test.rb
M test/new_device_startmode_test.rb
M test/routing_test.rb
M test/suse_firewall_4_network_test.rb
M test/test_helper.rb

Log Message:
-----------
Merge pull request #243 from mvidner/rspec

Rspec speed up, enable library lookup in working copies.


Compare:
https://github.com/yast/yast-network/compare/28e7be8ff00a...3c9788ca3dfb
< Previous Next >
This Thread
  • No further messages