Skip to content

Commit

Permalink
docs: rename methods
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Aug 18, 2022
1 parent 8129a57 commit 3e1b22b
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 25 deletions.
Binary file modified docs/img/uml/boot-cli-many-workers.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/uml/boot-cli-single-worker.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/uml/boot-jest-many-workers.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/uml/boot-jest-single-worker.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 8 additions & 9 deletions docs/uml/sequence/boot-cli-many-workers.uml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ User -> CLI: detox test
activate CLI
CLI -> Pri: require('detox')
activate Pri
CLI -> Pri: globalSetup()
CLI -> Pri: init()
loop while exitCode != 0 and retries > 0
CLI -> Jest0: child_process.spawn('jest')
activate Jest0
Jest0 -> Sec0: require('detox')
activate Sec0
Jest0 -> Sec0: resolveConfig()
Jest0 -> Sec0: globalSetup()
note right: no-op
Jest0 -> Sec0: init()
Jest0 -> JestN: child_process.fork()
activate JestN
loop every test file
Expand All @@ -32,22 +31,22 @@ loop while exitCode != 0 and retries > 0
JestN -> Env: setup()
Env -> SecN: require('detox')
activate SecN
Env -> SecN: setup()
Env -> SecN: init()
Env -> SecN: installWorker()
SecN --> Pri: register worker
JestN -> Env: run test file
JestN -> Env: teardown()
Env -> SecN: teardown()
Env -> SecN: uninstallWorker()
SecN --> Pri: report failed tests
deactivate Env
end loop
deactivate SecN
deactivate JestN
Jest0 -> Sec0: globalTeardown()
note right: no-op
deactivate SecN
Jest0 -> Sec0: cleanup()
deactivate Sec0
deactivate Jest0
end loop
CLI -> Pri: globalTeardown()
CLI -> Pri: cleanup()
deactivate Pri
deactivate CLI

Expand Down
14 changes: 6 additions & 8 deletions docs/uml/sequence/boot-cli-single-worker.uml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,31 @@ User -> CLI: detox test
activate CLI
CLI -> Pri: require('detox')
activate Pri
CLI -> Pri: globalSetup()
CLI -> Pri: init()
loop while exitCode != 0 and retries > 0
CLI -> Jest0: child_process.spawn('jest')
activate Jest0
Jest0 -> Sec: require('detox')
activate Sec
Jest0 -> Sec: resolveConfig()
Jest0 -> Sec: globalSetup()
note right: no-op
Jest0 -> Sec: init()
loop every test file
Jest0 -> Env: new()
activate Env
Jest0 -> Env: setup()
Env -> Sec: setup()
Env -> Sec: installWorker()
Sec --> Pri: register worker
Jest0 -> Env: run test file
Jest0 -> Env: teardown()
Env -> Sec: teardown()
Env -> Sec: uninstallWorker()
Sec --> Pri: report failed tests
deactivate Env
end loop
Jest0 -> Sec: globalTeardown()
note right: no-op
Jest0 -> Sec: cleanup()
deactivate Sec
deactivate Jest0
end loop
CLI -> Pri: globalTeardown()
CLI -> Pri: cleanup()
deactivate Pri
deactivate CLI

Expand Down
9 changes: 5 additions & 4 deletions docs/uml/sequence/boot-jest-many-workers.uml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ activate Jest0
Jest0 -> Pri: require('detox')
activate Pri
Jest0 -> Pri: resolveConfig()
Jest0 -> Pri: globalSetup()
Jest0 -> Pri: init()
Jest0 -> JestN: child_process.fork()
activate JestN
loop every test file
Expand All @@ -23,17 +23,18 @@ loop every test file
JestN -> Env: setup()
Env -> Sec: require('detox')
activate Sec
Env -> Sec: setup()
Env -> Sec: init()
Env -> Sec: installWorker()
Sec --> Pri: register worker
JestN -> Env: run test file
JestN -> Env: teardown()
Env -> Sec: teardown()
Env -> Sec: uninstallWorker()
Sec --> Pri: report failed tests
deactivate Env
end loop
deactivate Sec
deactivate JestN
Jest0 -> Pri: globalTeardown()
Jest0 -> Pri: cleanup()
deactivate Pri
deactivate Jest0

Expand Down
8 changes: 4 additions & 4 deletions docs/uml/sequence/boot-jest-single-worker.uml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ activate Jest0
Jest0 -> Pri: require('detox')
activate Pri
Jest0 -> Pri: resolveConfig()
Jest0 -> Pri: globalSetup()
Jest0 -> Pri: init()
loop every test file
Jest0 -> Env: new()
activate Env
Jest0 -> Env: setup()
Env -> Pri: setup()
Env -> Pri: installWorker()
Jest0 -> Env: run test file
Jest0 -> Env: teardown()
Env -> Pri: teardown()
Env -> Pri: uninstallWorker()
deactivate Env
end loop
Jest0 -> Pri: globalTeardown()
Jest0 -> Pri: cleanup()
deactivate Pri
deactivate Jest0

Expand Down

0 comments on commit 3e1b22b

Please sign in to comment.