Conversation
b63d540 to
a9c420a
Compare
ca3b0ce to
886e029
Compare
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
…he oauth one Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
…rom nextcloud/.github Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
886e029 to
9f9b46e
Compare
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
9f9b46e to
5631c35
Compare
| if: steps.check_integration.outcome == 'success' | ||
| working-directory: apps/${{ env.APP_NAME }} | ||
| run: composer run test:integration | ||
| #- name: Check PHPUnit integration script is defined |
There was a problem hiding this comment.
why we are commenting duplicated tests instead of removing?
| class GitHubCodeReferenceIntegrationTest extends TestCase { | ||
| private GithubCodeReferenceProvider $referenceProvider; | ||
| private SecretService $secretService; | ||
| private IConfig $config; |
There was a problem hiding this comment.
Is it used somewhere?
|
|
||
| namespace OCA\Github\Tests\Integration; | ||
|
|
||
| require_once __DIR__ . '/GitHubHtml.php'; |
There was a problem hiding this comment.
Maybe the other test files should have this or as alternative could we add these classes to the autoload-dev section in composer.json?
| </coverage> | ||
| </source> | ||
| <testsuite name="GitHub integration App Tests"> | ||
| <directory suffix="Test.php">.</directory> |
There was a problem hiding this comment.
The unit test config scans . recursively, picking up integration tests too.
Maybe we should consider excluding the integration/ directory with something like <exclude>./integration</exclude>
This way test:unit only runs unit tests and test:integration only runs integration tests.
|
|
||
| - name: Skipped | ||
| # Fail the action when neither unit nor integration tests ran | ||
| if: steps.check_phpunit.outcome == 'failure' && steps.check_integration.outcome == 'failure' |
There was a problem hiding this comment.
steps.check_integration.outcome - was commented out
| $this->assertMatchesRegularExpression('/^[⑁⦿] .+#\d+$/u', $expectedSubline, 'Subline should match expected format'); | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
nit: maybe adding tearDown() somewhere in this file will be a good idea to clean OAuth flow data to not affect any other tests that can be executed later and to revoke token from GitHub
| public static function findAuthorizeForm(DOMXPath $selector): ?DOMElement { | ||
| return self::findForm($selector, [ | ||
| '//form[contains(@class, "js-oauth-authorize-form")]', | ||
| '//form[contains(@class, "js-oath-authorize-form")]', |
There was a problem hiding this comment.
can we add a comment here what is "js-oath" ? from quick search in the internet, I was not able to find such form.
https://github.com/nextcloud/server/issues/1#issuecomment-1), the reference object contained an invalid value for the comment which resulted in a crash of the widget. That's solved by acting like it's just an issue/pr link when the comment was not found.