Commit 4a2642f
#BE-6910 Testing Setup (#72)
* Add testing setup
* Refactor vitest config, add new test files: AppcircleExitError, ProgramError and writer.
* feat(test): setup vitest and refactor for testability
* test(services): add unit tests for services layer
* test(core): add unit tests for core modules
* test(main): add unit tests for main and program logic
* test: add remaining unit tests and directory structure
* Add unit tests for constants, security, types, and utility functions
* test(main): enhance error handling and edge case coverage in main function and program logic
* feat(tests): enhance unit tests for various edge cases and error handling
* test: remove skipped tests for help, version, and JSON output modes in critical commands
* fix(tests): update import paths and type assertions in integration and unit tests
* feat(login): refactor login handling with dedicated helper functions for improved readability and organization
* test(command-runner): add comprehensive tests for login helper functions and error handling
* feat(logout): implement logout helper functions and integrate with command handling
* Add unit tests for user prompt helpers and workflow ID parameter handling
* refactor(command-runner): modularize command handling and enhance parameter validation with utility functions
* refactor(command-runner): integrate utility functions for parameter resolution and validation, enhancing code modularity and readability
* feat(command-runner): add comprehensive utility functions for command processing, validation, and error handling to improve modularity and testability
* chore(vitest): update test exclusion patterns to improve test coverage by excluding specific utility and type files
* refactor(main): extract command processing and error handling logic into utility functions for improved modularity and testability
* refactor(program): extract help generation and error handling into utility functions for improved modularity and readability
* feat(utilities): introduce utility functions for authentication, build management, file operations, and log processing to enhance modularity and testability
* feat(writer): add command-specific writer functions and utility functions for data transformation and logging to enhance modularity and testability
* feat(api): extract utility functions for API configuration, headers, and logging to enhance modularity and testability
* refactor(writer): consolidate command handling by extracting command-specific writer functions to improve modularity and maintainability
* feat(interactive-runner): enhance parameter handling with validation, path expansion, and modular prompt configuration for improved user interaction
* feat(test-setup): add spies for console.info and console.table to enhance logging control during tests
* feat(tests): add comprehensive unit tests for command runner utilities, enhancing coverage and modularity across various functionalities
* fix(test-setup): ensure console methods exist before mocking to prevent errors during tests
* 2.7.5-alpha.0
* 2.7.5-alpha.1
* refactor(tests): update E2E tests to use source TypeScript file and improve command execution handling
* feat(upload): enhance upload process to update release notes with version ID retrieval
* test(release-notes): add unit tests for release notes update feature including long, multiline, and special character handling
* feat(publish): enforce required parameters for enterprise app version publishing and update documentation
* test(enterprise-utilities): enhance tests for enterprise app version publishing with additional parameters and output validation
* 2.7.5-alpha.2
* feat(auth): add token validation before login to handle expired tokens
* test(e2e): enhance authentication command tests for invalid tokens and logout scenarios
* 2.7.5-alpha.3
* feat: add pr workflow into Jenkinsfile
* feat(upload): add enhanced method to retrieve latest app version ID after upload
* feat(prompt): add support for simple multiline input for release notes
* chore(docs): remove deprecated distribution commands and update migration guide links
* 2.7.5-alpha.4
* refactor: change pr validation stage
* feat: get tags before publish
* refactor: add node version check
* test: skip logout command test when not authenticated
* feat: downgrade vite
* Feature/be 6412 (#76) (#75)
* feat(config): add HOOK_HOSTNAME configuration option and update related documentation
* feat(command-runner): introduce build execution modes and user prompt for selecting execution mode during build start
* feat(build-logs): implement real-time build logs feature with enhanced logging, progress tracking, and file output support
* feat: add step summary execution mode and enhance build log processing
* feat: validate PAT token format and improve logout command error handling
* Add new unit tests
* feat: exclude 'src/types/build-logs.ts' from coverage reporting
* Add unit tests for command runner functionalities
* 2.7.5-alpha.5
* feat: skip tests for handling invalid PAT token and user login status
* feat: add execution mode parameter to build command for enhanced monitoring options
* feat: enhance execution mode handling by prompting user in interactive mode
* feat: skip test for handling login with empty token string
* feat: implement execution mode tests and skip specific logout tests in E2E suite
* 2.7.5-alpha.6
* refactor: update downloadBuildLogs function calls to use object destructuring for path parameter
* fix: set default hook hostname to 'https://hook.appcircle.io' if not provided in environment variables
* refactor: update execution mode terminology to 'monitoring preference' for clarity and consistency across documentation and code
* refactor: improve duration formatting logic in command runner for better readability and consistency
* refactor: enhance step management in command runner to prevent duplicate displays and improve status handling
* refactor: rename execution mode to monitor mode and update related documentation and code for improved clarity and consistency
* refactor: update console log messages for build log downloads to improve clarity
* feat: add build status utilities and enhance artifact download error handling
* feat: add verbose mode option to build log rendering for enhanced output control
* refactor: enhance log processing and message handling for verbose mode, including improved deduplication and flushing of buffered messages
* fix: ensure SSE connection is closed before prompting for log download on build failure
* 2.7.5-alpha.7
* refactor: update authentication method from Personal Access Token to Personal Access Key in CLI and documentation
* feat: add legacy PAT login support for backward compatibility and update related tests
* feat: add hidden property to commands and update error message handling in TerminalRenderer
* 2.7.5-alpha.8
* fix: update build monitor and execution mode options to include numbering for improved clarity
* 2.7.5-alpha.9
Co-authored-by: Fuat Guzel <39780609+fuatguzel@users.noreply.github.com>
* refactor: add fancy icons into jenkinsfile (#74)
* refactor: add fancy icons into jenkinsfile
* refactor: add fancy icons into jenkinsfile
* refactor: add fancy icons into jenkinsfile
* refactor: add fancy icons into jenkinsfile
* refactor: add .
---------
Co-authored-by: Ozer <ozer@Ozers-MacBook-Pro.local>
Co-authored-by: Fuat Guzel <fuatguzel754@gmail.com>
* refactor: add numbering to build monitoring preference options for clarity in unit tests
---------
Co-authored-by: Burak Yıldırım <burak_yildirim_official@hotmail.com>
Co-authored-by: Ozer <ozer@Ozers-MacBook-Pro.local>
Co-authored-by: ozeryilm <ozer@appcircle.io>1 parent 0aa9fce commit 4a2642f
141 files changed
Lines changed: 78187 additions & 5721 deletions
File tree
- docs
- build
- config
- distribution
- profile
- enterprise-app-store/version
- login
- migration-guides
- src
- core
- services
- types
- utils
- tests
- core
- e2e
- integration
- setup
- unit
- core
- security
- services
- types
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
7 | 42 | | |
8 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
9 | 47 | | |
10 | 48 | | |
11 | 49 | | |
12 | 50 | | |
13 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
14 | 56 | | |
15 | 57 | | |
16 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
156 | | - | |
157 | | - | |
158 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
78 | 100 | | |
79 | 101 | | |
80 | 102 | | |
| |||
121 | 143 | | |
122 | 144 | | |
123 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
124 | 161 | | |
125 | 162 | | |
126 | 163 | | |
| |||
147 | 184 | | |
148 | 185 | | |
149 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
150 | 196 | | |
151 | 197 | | |
152 | 198 | | |
| |||
157 | 203 | | |
158 | 204 | | |
159 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
160 | 212 | | |
161 | 213 | | |
162 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments