You've already forked gnatdashboard
mirror of
https://github.com/AdaCore/gnatdashboard.git
synced 2026-02-12 12:30:42 -08:00
32 lines
965 B
Python
32 lines
965 B
Python
"""Check that all files have been created."""
|
|
|
|
from unittest import TestCase
|
|
from support.mock import GNAThub, Project
|
|
|
|
|
|
class TestSimpleExample(TestCase):
|
|
def setUp(self):
|
|
self.longMessage = True
|
|
|
|
# Run GNAThub with only the sonar-config plugin
|
|
self.gnathub = GNAThub(Project.disabled(), plugins=['sonar-config'])
|
|
|
|
def testDatabaseContent(self):
|
|
# Dummy scenario variables
|
|
scenario = {
|
|
'BUILD_MODE': 'Production',
|
|
'VERSION': 'test-0.0.0',
|
|
'BUILD_DIR': '/some/user/workspace/project/build/dir',
|
|
'PROCESSORS': '2'
|
|
}
|
|
|
|
# Test the Python API
|
|
self.gnathub.run(script='check-api.py', scenario_vars=scenario)
|
|
|
|
def testCrossAttributes(self):
|
|
self.gnathub.run(script='check-cross-api.py')
|
|
self.gnathub.run(
|
|
script='check-cross-api-override.py',
|
|
target='my-custom-target', runtime='my-custom-runtime'
|
|
)
|