Github user gaborhermann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2542#discussion_r81115229
  
    --- Diff: 
flink-libraries/flink-ml/src/test/scala/org/apache/flink/ml/recommendation/ImplicitALSTest.scala
 ---
    @@ -0,0 +1,171 @@
    +/*
    + * 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.flink.ml.recommendation
    +
    +import org.apache.flink.ml.util.FlinkTestBase
    +import org.scalatest._
    +
    +import scala.language.postfixOps
    +import org.apache.flink.api.scala._
    +import org.apache.flink.core.testutils.CommonTestUtils
    +
    +class ImplicitALSTest
    +  extends FlatSpec
    +    with Matchers
    +    with FlinkTestBase {
    +
    +  override val parallelism = 2
    +
    +  behavior of "The modification of the alternating least squares (ALS) 
implementation" +
    +    "for implicit feedback datasets."
    +
    +  it should "properly compute Y^T * Y, and factorize matrix" in {
    --- End diff --
    
    Yes, you are right it should be split into two tests.
    I kept it in one only because, if I remembered correctly, there was a rule 
not to initialize to `ExecutionEnvironment`s in one test (probably because of 
taking test performance into consideration). I did not see, however, how to 
initialize the environment once, as I would have had to override the `before` 
function implemented in `FlinkTestBase`.
    
    What do you think would be the best solution? Overriding `before`, using 
two different `ExectionEnvironment`s, or keeping it this way (in one test)?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to