Jk1484
ffc931aad1
feat(golangBuild): use 'unit' build tag to include tests during test execution ( #4345 )
...
* Added unit tag as argument. Added description to runTests command. Changed code generator to have unit build tag in generated unit test files.
* Added unit build tag to all unit test files.
* added to new unit test unit build tag
* Update verify-go.yml
* small fix
---------
Co-authored-by: Muhammadali Nazarov <Muhammadali.Nazarov@acronis.com>
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2023-05-03 21:02:11 +05:00
Oliver Nocon
a46f796bcd
chore: cleanup reporting & some incorrect file usage in tests ( #3943 )
...
* chore: cleanup reporting & some incorrect file usage in tests
* cleanup interface
* chore: remove comment
* preserve error handling
* Rename FileUtils.go to fileUtils.go
* clean up formatting
* chore: address static check findings
* fix brittle test
* chore: cleanup formatting
2022-08-09 10:57:02 +02:00
Eng Zer Jun
0f4e30e9db
test: use T.TempDir
to create temporary test directory ( #3721 )
...
This commit replaces `ioutil.TempDir` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.
Prior to this commit, temporary directory created using `ioutil.TempDir`
needs to be removed manually by calling `os.RemoveAll`, which is omitted
in some tests. The error handling boilerplate e.g.
defer func() {
if err := os.RemoveAll(dir); err != nil {
t.Fatal(err)
}
}
is also tedious, but `t.TempDir` handles this for us nicely.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2022-07-12 15:19:12 +02:00
Oliver Nocon
dbc459d6ea
chore: cleanup linting issues in abap steps ( #3876 )
...
* chore: cleanup linting issues in abap steps
* update
* do not break on errors during testing
* Fix warning
Co-authored-by: Daniel Mieg <daniel.mieg@sap.com>
2022-07-06 14:29:04 +02:00
Daniel Bernd
a3f1234a60
Feature: ATC & AUNIT - ObjectSetLibrary(OSL) usage ( #3755 )
...
* own OSL go File & first changes ATC step
* OSL Integration in AUnit & ATC steps 1
* OSL & Unit Tests
* Unit Tests 1
* OSL - AUnit & ATC usage
* Unittest ATC: packagetree --> package incl. subpackages
* correct spelling
* yaml & generated update
* generated Metadata
Co-authored-by: Daniel Bernd <93763187+danManSAP@users.noreply.github.com>
2022-04-27 13:30:43 +02:00
Daniel Mieg
8634d8bb12
Add easy mode for AUnit & ATC ( #3389 )
...
* remove mandatory flag from config files
* Enable repo.yml as config
* Adapt to merge
* Refactoring
* Refactoring
* avoid panic
* Add comments
* Add easy mode for atc
* Add tests
* Add test
* Refactor
* Add test for MPS
* Updates
* Rename functions
* Add files to gitignore
* Rename
* Renaming
* Renaming
* Renaming
* Improve error messages
* Update documentation
* Add logging
* Rename
* Extend gitignore
2022-01-12 12:02:27 +01:00
Daniel Mieg
b5da011200
Consistent config for AUnit ( #3395 )
...
* Unify singular/plural in config files
* singular -> plural
* adapt
* Change
2021-12-23 13:33:01 +01:00
Dominik Lendle
1930e086cc
A unit ( #3385 )
...
* change return after files are persisted & Change logging
* reduce object set to single object
* adapt tests
* adapt docu
* adapt stage docu
* adapt tests
2021-12-22 11:04:22 +01:00
Dominik Lendle
9917b08ff8
A unit object set enhancement ( #3273 )
...
* change return after files are persisted & Change logging
* object set enhancement
* enhance object set
* Object set enhancement
* object set enhancement
* reduce object set
* adapt documentation
* adapt docu
* remove comment blocks
* remove comment blocks
* adapt object set usage
* adapt documentation to new object set usage
* adapt documentation to new object set usage & remove trailing spaces
* Adapt Unit tests
* Adapt Unit tests
* Adapt Unit tests
* cleanup code
* cleanup code
* refactor object set
* remove parallel tests
* reduce set basis
* adapt tests
* dummy commit
* adapt docu
* Update documentation/docs/steps/abapEnvironmentRunAUnitTest.md
* Update documentation/docs/steps/abapEnvironmentRunAUnitTest.md
* Update documentation/docs/steps/abapEnvironmentRunAUnitTest.md
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
2021-12-21 15:24:54 +01:00
Dominik Lendle
f188979412
Add html processing to AUnit stage/step ( #3302 )
...
* change return after files are persisted & Change logging
* html processing
* Extend step parameters
* Add documentation
* html processing
* add generateHTML flag to general
* test adaptions
* step metadata corrections
* adapt formatting
* Update documentation/docs/pipelines/abapEnvironment/extensibility.md
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
* Update documentation/docs/pipelines/abapEnvironment/extensibility.md
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
* adapt unit tests
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
2021-12-13 16:39:32 +01:00
Dominik Lendle
f67cbbe0a7
A unit step integration ( #3120 )
...
* Add AUnit stage
* Add AUnit stage to ABAP Pipeline
* Add Groovy Tests
* surround header with space line
* correct class name
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* Update tests & docu
* adapt tests
* Fix Pipeline Tests
* adapt tests
* Adapt tests
* Adapt tests
* docu fixes
* Adapt tests
* Improve Tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt host config
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* adapt docu links
* adapt docu links
* adapt docu links
* adapt docu links
* Add example to config docu
* change docu
* Change host check
* Adapt tests
* Add Prepare System defaults
* Change Prepare System defaults
* return after writing xml results
* change logging
* return after results have been persisted
* Change host check
* echo test
* echo test
* echo test
* echo test
* echo test
* config host checker working
* Enable host groovy test
* remove duplicates
* docu extension AUnit extension stage
* Remove trailing spaces
* package restrictions added to docu
* correct to type
* correct type aunit tests
* add capital letters to docu examples
* remove escape
* adapt unit tests
Co-authored-by: Daniel Mieg <daniel.mieg@sap.com>
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-11-11 15:10:14 +01:00
Dominik Lendle
09f5c0a524
AUnit step ( #3075 )
...
* Add AUnit step
* Add Groovy File
* Update metadata
* Add groovy test config
* Add Unit tests
* Add Documentation
* Docu fixes
* change docu
* change docu
* change logging level & remove sleep
* change docu
* change docu
* Update documentation/docs/steps/abapEnvironmentRunAUnitTest.md
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
2021-09-20 11:14:13 +02:00