semvec/pypi-packages huggingface dataset:
cdk-codebuild-sonarcloud 0.0.2
cdk-codebuild-sonarcloud
License: Apache-2.0
Requires Python: ~=3.8

This CDK construct creates an [AWS Codebuild](https://www.sonarsource.com/products/sonarcloud/) action to perform static code analysis using [Sonarcloud](https://www.sonarsource.com/products/sonarcloud/).

# Getting started

Here is how to include the construct in your CDK code :

```javascript
const sonarcloudScan = new CDKCodeBuildSonarcloud(this, 'SonarcloudBuildAction', {
      sourceOutput: sourceOutput,
      sonarOrganizationName: 'my-sonarcloud-organization-name',
      sonarProjectName: 'my-sonarcloud-project-name',
});
```

Check [Here](/examples/codepipeline-example.ts) for an example on how to use the construct.

# Security

A Sonarcloud account is required to use this construct. Create a Sonarcloud [token](https://docs.sonarsource.com/sonarcloud/advanced-setup/user-accounts/#user-tokens) to connect securely to Sonarcloud from AWS CodeBuild. Store this token in your AWS account in AWS Secret Manager, name the secret "sonar-token" and use "SONAR_TOKEN" as the secret key.

Please review the [AWS Secret Manager security best practices](https://docs.aws.amazon.com/prescriptive-guidance/latest/secure-sensitive-data-secrets-manager-terraform/best-practices.html) in order to securely create and manage your secret.
pytest-webstage 1.0.0
Test web apps with pytest
License: Apache-2.0
Requires Python: <4.0,>=3.10

# pytest-webstage

Test web apps with pytest.

- Automatic parametrized testing for different browsers
- Managing driver and browsers for testing
- Sync and async API

## Getting started

Install pytest and pytest-webstage.

```sh
# for pip:
pip install pytest-webstage

# for poetry:
poetry add --group dev pytest-webstage
```

It's recommended to use `webstage.toml` for the configuration.

```sh
webstage init > webstage.toml
```

Write your test in pytest:

```python
# tests/test_browser.py
from pytest_webstage.webstage import WebStage

def test_can_visit_url(webstage: WebStage):
    with webstage.step("Visit Google") as step:
        step.sync.go("https://google.com")
        step.sync.until_ready()
```

Execute the test:

```sh
pytest
```

If you'd like to check the web drivers and the browsers used:

```sh
webstage check-cache
```

You can see some examples at `tests/`.

## License

SPDX: Apache-2.0