Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #16

Merged
merged 72 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
7043db2
fix: Parallel run must be True all the time so that testomatio doesn'…
tikolakin Aug 15, 2024
5037f8a
bump: version 2.8.1 → 2.8.2.dev2
tikolakin Aug 15, 2024
1e52fcf
fix: Fix shared run
tikolakin Aug 16, 2024
b274ae3
bump: version 2.8.2.dev2 → 2.8.2.dev3
tikolakin Aug 16, 2024
2889f5d
fix: Fix option check
tikolakin Aug 16, 2024
8378a17
build: update deps
tikolakin Aug 16, 2024
80614cc
bump: version 2.8.2.dev3 → 2.8.2.dev4
tikolakin Aug 16, 2024
0b3c107
feat: support HTTP_PROXY var
tikolakin Aug 24, 2024
c053e04
fix: Fix shared runs
tikolakin Aug 24, 2024
7ebcb98
refactor: Use system temp folder
tikolakin Aug 24, 2024
f6b41a3
bump: version 2.8.2.dev4 → 2.8.2.dev5
tikolakin Aug 24, 2024
c5c61ea
docs: update changelog
tikolakin Aug 24, 2024
cf6d83b
feat: send lables and tags on the test run update call
tikolakin Aug 25, 2024
8fea9fb
bump: version 2.8.2.dev5 → 2.8.2.dev6
tikolakin Aug 25, 2024
58b8f8f
feat: do not rely on @T in test id, it's optional part, but still acc…
tikolakin Aug 25, 2024
c6a084e
bump: version 2.8.2.dev6 → 2.8.2.dev7
tikolakin Aug 25, 2024
514a354
fix: log error message on test run update failure
tikolakin Aug 25, 2024
00a9da8
bump: version 2.8.2.dev7 → 2.8.2.dev8
tikolakin Aug 25, 2024
72a522a
fix: read S3 creads from env acc to the testomatio docs
tikolakin Aug 27, 2024
1aa8772
bump: version 2.8.2.dev8 → 2.8.2.dev9
tikolakin Aug 27, 2024
775a4bf
fix: Fix uploading artifacts to the bucket with user defined path
tikolakin Aug 27, 2024
b6d9fbf
bump: version 2.8.2.dev9 → 2.8.2.dev10
tikolakin Aug 27, 2024
10b64a1
fix: fix get env
tikolakin Aug 27, 2024
b552fd6
bump: version 2.8.2.dev10 → 2.8.2.dev11
tikolakin Aug 27, 2024
f43f77e
fix: empty dict
tikolakin Aug 27, 2024
a088ef4
bump: version 2.8.2.dev11 → 2.8.2.dev12
tikolakin Aug 27, 2024
ab30eb4
feat: support private and public artifact configuration
tikolakin Aug 28, 2024
416d8b4
bump: version 2.8.2.dev12 → 2.8.2.dev13
tikolakin Aug 28, 2024
8eee6dc
feat: resolve content type for uploaded artifacts
tikolakin Sep 1, 2024
7800768
bump: version 2.8.2.dev13 → 2.8.2.dev14
tikolakin Sep 1, 2024
f754f7b
fix: resolve proxy for entire session duration
tikolakin Sep 1, 2024
9e03dcb
bump: version 2.8.2.dev14 → 2.8.2.dev15
tikolakin Sep 1, 2024
99490a9
fix: fix infinitive loop
tikolakin Sep 1, 2024
5648f6b
bump: version 2.8.2.dev15 → 2.8.2.dev16
tikolakin Sep 1, 2024
9b5709a
fix: recursion must not happen
tikolakin Sep 1, 2024
ea2f10c
bump: version 2.8.2.dev16 → 2.8.2.dev17
tikolakin Sep 1, 2024
aaeb290
fix: fix proxy once again
tikolakin Sep 2, 2024
64eef2e
bump: version 2.8.2.dev17 → 2.8.2.dev18
tikolakin Sep 2, 2024
f8ef08e
fix: remove proxy for now as I can't resolve it reliably
tikolakin Sep 2, 2024
4027c8d
bump: version 2.8.2.dev18 → 2.8.2.dev19
tikolakin Sep 2, 2024
d8c8d01
feat: proxy aware session
tikolakin Sep 2, 2024
d956dc0
bump: version 2.8.2.dev19 → 2.8.2.dev20
tikolakin Sep 2, 2024
6dabafb
fix: fix getter
tikolakin Sep 2, 2024
fea5fc2
bump: version 2.8.2.dev20 → 2.8.2.dev21
tikolakin Sep 2, 2024
b14c44a
fix: fix setter
tikolakin Sep 2, 2024
d5900be
bump: version 2.8.2.dev21 → 2.8.2.dev22
tikolakin Sep 2, 2024
9b383aa
refactor: debug connectivity error
tikolakin Sep 2, 2024
90be714
bump: version 2.8.2.dev22 → 2.8.2.dev23
tikolakin Sep 2, 2024
91a2d67
fix: alway check proxy settings
tikolakin Sep 2, 2024
4336431
bump: version 2.8.2.dev23 → 2.8.2.dev24
tikolakin Sep 2, 2024
3ee85f9
fix: connection fallback when proxy is unavilable
tikolakin Sep 2, 2024
e89a62c
bump: version 2.8.2.dev24 → 2.8.2.dev25
tikolakin Sep 2, 2024
5c82e24
fix: debug
tikolakin Sep 3, 2024
367d80b
bump: version 2.8.2.dev25 → 2.8.2.dev26
tikolakin Sep 3, 2024
bceb1c2
fix: Fix session usage
tikolakin Sep 3, 2024
9b19b45
bump: version 2.8.2.dev26 → 2.8.2.dev27
tikolakin Sep 3, 2024
6b8cc68
fix: debug further
tikolakin Sep 3, 2024
3de6f66
bump: version 2.8.2.dev27 → 2.8.2.dev28
tikolakin Sep 3, 2024
c021280
fix: more debug logs
tikolakin Sep 3, 2024
d65fbd1
bump: version 2.8.2.dev28 → 2.8.2.dev29
tikolakin Sep 3, 2024
b46e7ba
fix: retry connection for a while
tikolakin Sep 3, 2024
7b6aeeb
bump: version 2.8.2.dev29 → 2.8.2.dev30
tikolakin Sep 3, 2024
f675cce
fix: upload files in bulk
tikolakin Sep 4, 2024
f0a5f31
bump: version 2.8.2.dev30 → 2.8.2.dev31
tikolakin Sep 4, 2024
2e7f071
fix: fix resolving urls
tikolakin Sep 4, 2024
7121ffe
bump: version 2.8.2.dev31 → 2.8.2.dev32
tikolakin Sep 4, 2024
2cb4db6
fix: add_artifacts depends on the pytest node
tikolakin Sep 5, 2024
365d957
bump: version 2.8.2.dev32 → 2.8.2.dev33
tikolakin Sep 5, 2024
a2ac056
fix: handle not created test run
tikolakin Sep 5, 2024
399bd4b
bump: version 2.8.2.dev33 → 2.8.2.dev34
tikolakin Sep 5, 2024
42d155f
fix: enforce artifacts to be returning inline when requested
tikolakin Sep 5, 2024
38f9ad9
bump: version 2.8.2.dev34 → 2.8.2.dev35
tikolakin Sep 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 54 additions & 110 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,180 +1,124 @@
## 2.8.1 (2024-08-14)

## 2.8.1rc2 (2024-08-12)
## 2.8.2.dev5 (2024-08-24)

### Feat

- Provide an option to not update build URL in a test run

### Fix

- process test id that might start with @

## 2.8.1rc1 (2024-08-11)
- support HTTP_PROXY var

### Fix

- Accept testid provided by testomatio before test starts
- Fix shared runs

## 2.8.1rc0 (2024-08-11)
### Refactor

### Feat
- Use system temp folder

- Pytestomatio sends test executor url to Testomatio test run (on CI)
- Allow user to asign label at test synchronisation
- Allow filtering tests by ids when running test execution
## 2.8.2.dev4 (2024-08-16)

### Fix

- Handle pytest.skip() so that test status on testomatio is valid
- fix dependencies and gitignore
- Fix option check

## 2.6.1 (2024-08-05)
## 2.8.2.dev3 (2024-08-16)

### Feat

- Fixed report final handling with pytest-xdist
- Small code refactoring
### Fix

## 2.5.0 (2024-03-11)
- Fix shared run

### Feat
## 2.8.2.dev2 (2024-08-16)

- Plugin code refactored
- Introduced ENV variable `TESTOMATIO_CODE_STYLE` to select code style formating **PEP8** or don't format at all
- Updated pytest version supported to 8+
- Set parallel run as default parameter. ENV variable `TESTOMATIO_SHARED_RUN` is not needed
- Introduced sync lock to be used with pytest-xdist. Env variable `TESTOMATIO_TITLE` becomes optional
## 2.8.2.dev1 (2024-08-16)

### Fix

- Fixed NPE when some params not set
- Fixed pytest exception with using **xdist** lib
- Fixed test parameters transfer for DDT tests
- Parallel run must be True all the time so that testomatio doesn't create new test runs when update test status

## 2.8.1 (2024-08-14)

## 2.2.0 (2024-03-11)
## 2.8.1rc2 (2024-08-12)

### Feat

- Add TESTOMATIO_RUN to support test runs created on testomatio
- Add https://www.conventionalcommits.org/en/v1.0.0/ support
- Provide an option to not update build URL in a test run

### Fix

- Fix syncing local test with testomatio that are imported in a custom folder (on testomatio end)
- Fix test run completion
- Fix to check testomatio session
- Allow all pytest hooks execution when running sync command that run before pytest_runtestloop (actual tests)
- Fix shared run reporting into new test run
- Fix/workarround of the incorreclty processed parameterised test on API
- Fix dot and space in parameterised test, fix project dependency

## 2.1.0 (2024-03-07)

### Feat

- Added support for `TESTOMATIO_TITLE`, `TESTOMATIO_SHARED_RUN` and `TESTOMATIO_LABEL`

## 2.0.0 (2024-03-05)

### Feat

- Align naming with Testomat.io branding
- add --directory option to import test into specific directory in testomat.io
- process test id that might start with @

## 1.7 (2024-02-26)
## 2.8.1rc1 (2024-08-11)

### Fix

- Fixes parameterized test sync and report
- Accept testid provided by testomatio before test starts

### 1.6.0 (2024-02-21)
## 2.8.1rc0 (2024-08-11)

### Feat

- Add helped to attach test artifacts
- Expose environment variables to provide access to cloud storage
- Update readme

### Fix

- Testomaito not longer supports nested test suites. Suites could be only in a folder.


### 1.5.0 (2024-02-12)
- Pytestomatio sends test executor url to Testomatio test run (on CI)
- Allow user to asign label at test synchronisation
- Allow filtering tests by ids when running test execution

### Fix
- Fixes artifacts in fixtures lifecycle
- Earlier, artifacts added in pytest fixtures where skipped by analyser

### 1.4.0 (2024-02-06)

### Feat
- Handle pytest.skip() so that test status on testomatio is valid
- fix dependencies and gitignore

- Adds `--create`, `--no-detached`, `--keep-structure`, `--no-empty`, for compatibility with original Testomatio check-tests
- Improves file update so it doesn't cause code style changes
## 2.6.1 (2024-08-05)

### Fix
- Fixes artifacts uploads and test sync with Testomatio
- Fixes test id resolution when syncing local test with Testomatio
- Fixes test id when sending test into test run
## 2.5.0 (2024-05-08)

### 1.3.0 (2023-12-06)
## 2.2.0 (2024-04-03)

### Fix

- [issue 5](https://github.com/Ypurek/pytest-analyzer/issues/5) - connection issues not blocking test execution anymore
- fix regex
- disable label and env parameters when updating test run due to 500 error from API
- Fix dot and space in parameterised test, fix project dependency

### 1.2.8 (2023-12-06)
## 2.3.1 (2024-03-13)

### Fix

- [issue 4](https://github.com/Ypurek/pytest-analyzer/issues/4) - Analyzer's execution order
- Fix shared run reporting into new test run
- Fix/workarround of the incorreclty processed parameterised test on API

### 1.2.5 (2023-10-21)
## 2.3.0 (2024-03-11)

### Feat

- added env variable `TESTOMATIO_RUNGROUP_TITLE` to group test runs
- Add TESTOMATIO_RUN to support test runs created on testomatio
- Add https://www.conventionalcommits.org/en/v1.0.0/ support

### Fix

- fixed serialization issue for update test status example
- Fix to check testomatio session
- Allow all pytest hooks execution when running sync command that run before pytest_runtestloop (actual tests)
- Fix syncing local test with testomatio that are imported in a custom folder (on testomatio end)

### 1.2.4 (2023-09-05)
## 2.1.0 (2024-03-07)

### Fix
## 2.0.0 (2024-03-05)

- improved parametrized tests reporting
- now parameters are passed to example attribute in the report
## 1.7.0 (2024-02-26)

### 1.2.3 (2023-09-03)
## 1.6.0 (2024-02-21)

### Fix
## 1.5.0 (2024-02-12)

- fixed issue with test artifacts when no credentials provided, test artifacts will not be uploaded and no issue raised
## 1.4.0 (2024-02-06)

### 1.2.0 (2023-08-20)
## 1.3.0 (2023-12-06)

### Fix
## 1.2.8 (2023-12-06)

- code refactored (Testomatio.io team review)
- simplified authentication. Only API key needed
- moved API key from pytest.ini to environment variable
- S3 credentials now read from testomat.io API, no local configuration needed
- Prettified test names in testomat.io
## 1.2.5 (2023-10-21)

### 1.1.1 (2023-08-17)
## 1.2.4 (2023-09-05)

### Feat
## 1.2.3 (2023-09-03)

- added artifacts support (screenshots, logs) to test report
## 1.2.0 (2023-08-20)

### 1.0.9 (2023-07-31)
## 1.1.1 (2023-08-17)

### Feat
- first public release
- test analyzer able to sync tests with testomat.io
- test analyzer able to add test ids to tests
- test analyzer able to submit test results to testomat.io
## 1.0.9 (2023-07-31)
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ https://docs.testomat.io/usage/test-artifacts/
Analyser needs to be aware of the cloud storage credentials.
There are two options:
1. Enable **Share credentials with testomat.io Reporter** option in testomat.io Settings -> Artifacts.
2. Use environment variables `ACCESS_KEY_ID, SECRET_ACCESS_KEY, ENDPOINT, BUCKET`
2. Use environment variables `ACCESS_KEY_ID, SECRET_ACCESS_KEY, ENDPOINT, BUCKET, BUCKET_PATH`

You would need to decide when you want to upload your test artifacts to cloud storage

Expand Down Expand Up @@ -197,6 +197,8 @@ def test_example():
- test run labels, tags

## TODO
- retry test run update with less attributes, we get 500 from api
- handler non configured s3 bucket error
- Fix test duration

## Contribution
Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@ name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "pep440"
version_provider = "pep621"
update_changelog_on_bump = true
update_changelog_on_bump = false
[project]
name = "pytestomatio"
version = "2.8.1"
version = "2.8.2.dev35"

dependencies = [
"requests>=2.29.0",
"pytest>7.2.0",
"boto3>=1.28.28",
"libcst==1.1.0",
"commitizen>=3.18.1",
"autopep8>=2.1.0",
"pytest-xdist>=3.6.1"
"commitizen>=3.29.0",
"autopep8>=2.1.0"
]

authors = [
Expand Down
Loading