Commit b7310e2f authored by Gaetan Chaboussie's avatar Gaetan Chaboussie
Browse files

Ajout d'un embryon de tests

parent 1eda774d
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import io.gitlab.arturbosch.detekt.Detekt
import org.jetbrains.changelog.markdownToHTML
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
......@@ -28,6 +45,7 @@ repositories {
}
dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.17.1")
testImplementation("junit:junit:4.13")
}
// Configure gradle-intellij-plugin plugin.
......@@ -116,4 +134,18 @@ tasks {
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
channels.set(listOf(properties("pluginVersion").split('-').getOrElse(1) { "default" }.split('.').first()))
}
test {
useJUnit()
maxHeapSize = "256m"
}
}
sourceSets {
test {
java {
srcDir("src/test/java")
}
resources.srcDir("src/tests/resources")
}
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.plugin.test;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase;
public class OfbizPluginTestCase extends LightJavaCodeInsightFixtureTestCase {
public OfbizPluginTestCase() {
super();
final Logger LOG = Logger.getInstance(OfbizPluginTestCase.class);
}
public void testMiseEnPlaceStructure() {
assert true;
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment