Skip to content

lucasponce/ginkgo-parallell-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ginkgo-parallell-tests

Exercice for refactoring a long sequential test into indepent tests that ginkgo can run in parallel.

# Run the sequential approach (parallel flag won't work as the tests are coded in an ordered way
ginkgo -p test test_sequential/
Will run 24 of 24 specs
Running in parallel across 23 processes
[...]
Ran 24 of 24 Specs in 250.200 seconds
SUCCESS! -- 24 Passed | 0 Failed | 0 Pending | 0 Skipped
PASS

Ginkgo ran 1 suite in 4m10.810731534s
Test Suite Passed
# Run the parallel approach (different tests could be run in parallel)
ginkgo -p test test_parallel/
Will run 24 of 24 specs
Running in parallel across 23 processes
[...]
Ran 24 of 24 Specs in 30.008 seconds
SUCCESS! -- 24 Passed | 0 Failed | 0 Pending | 0 Skipped


Ginkgo ran 1 suite in 30.353073841s
Test Suite Passed

About

Setup for sequential / parallel refactoring

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages